#pragma once
/*
 *  macread.h
 *  ratmac
 *
 *  Created by Torsten Kammer on 20.01.08.
 *  Copyright 2008 Ferroequinologist.de. All rights reserved.
 *
 */

#include <stdio.h>

int readu32(unsigned long *target, FILE *fp);

int writeu32(unsigned long *value, FILE *fp);

int CreateDirectory(const char *filename, void *);

int ilth(int otherInt);

/*!
 * @abstract Returns a 32 bit integer from a buffer containing little endian data.
 * @param buffer The buffer the data comes from. It has to have at least four elements.
 */
int ifls(const unsigned char *buffer);

short slth(short otherShort);